package main

import "fmt"

type AInterface interface {
	sayA()
}
type BInterface interface {
	sayB()
}
type Stu1 struct{}

func (s Stu1) sayA() { fmt.Println("aaaa") }
func (s Stu1) sayB() { fmt.Println("bbbb") }

func main() {
	s := Stu1{}
	var a AInterface = s
	a.sayA()
	var b BInterface = s
	b.sayB()
}
